<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>发布东阿<?php echo $cInfos['typename']; ?>,东阿信息港,东阿信息服务</title>

<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
<meta name="description" content="发布东阿供求信息,东阿交友信息,东阿租房信息" />
<meta name="keywords" content="东阿县,东阿信息港,东阿房产信息,东阿招聘信息,发布供求信息,发布二手信息" />
<style>
#span_nativeplace2 { width:600px;  float:left; display:block;padding-bottom:5px;}
#span_nativeplace2 span{ font-size:14px; padding-left:4px;width:100px; height:23px; display:block; float:left;}
#span_nativeplace2 label{padding-left:4px;}

#span_infotype2 span{ cursor:pointer; height:20px ; line-height:20px; float:left; width: 80px; font-size:13px; padding-left: 10px; border-left:1px solid silver; border-top:1px solid silver; }
#span_infotype2{ width:638px;  float:left; border-right:1px solid silver;}
#infotype_detail{ margin-bottom:10px; width:700px; float:left; padding-bottom:12px; background-color: green; color:white;}
#infotype_detail div { display:block;width:700px; float:left; padding-top:8px; padding-left: 10px; padding-right:10px;}
#infotype_detail div span { margin:4px; width:100px; float:left; display:block; height:20px; font-size:14px;}
#infotype_detail div span label { padding-left:5px;}
</style>
<script language='javascript' src='js/main.js'></script>
<script language="javascript">
<!--
ismember = 1;
$(document).ready( function()

{
nativepalce_init();
showendtime();
}
);

function showendtime()
{
var now=new Date();
var year=now.getYear() + ($.browser.msie?0:1900);
var month=now.getMonth();
var day=now.getDate();
var hours=now.getHours();
var minutes=now.getMinutes();
var seconds=now.getSeconds();
$("#endtime").val( year+"-"+month+"-"+day+" "+hours+":"+minutes+":"+seconds );
}

function checkSubmit()
{

	if(document.form1.title.value==""){
		alert("<?php echo $cInfos['titlename']; ?>不能为空！");
		document.form1.title.focus();
		return false;
	}

	if(document.form1.typeid.value==0){
		alert("隶属栏目必须选择！");
		return false;
	}

	if(document.form1.typeid.options && document.form1.typeid.options[document.form1.typeid.selectedIndex].className!='option3')
	{
		alert("隶属栏目必须选择白色背景的项目！");
		return false;
	}

	if(document.form1.vdcode.value==""){
		document.form1.vdcode.focus();
		alert("验证码不能为空！");
		return false;
	}

}
-->
</script>
</head>
<body>
<?php include(DEDEMEMBER."/templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php include(DEDEMEMBER."/templets/menu.php"); ?>
      <div class="dedeMain">
        <div class="location"><span class="titAddChannel1 icon">发表</span><?php echo $cInfos['typename']; ?></div>
        <form class="mTB10 mL10 mR10" name="form1" action="archives_sg_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="-8" />
          <table width="100%" border="0" cellpadding="2" cellspacing="1" style="margin-bottom:6px" class="submit">
            <thead>
              <tr bgcolor="#F0FBE3">
                <th colspan="4"><strong>常规参数：</strong> 
					<?php if(!$cfg_ml->IsLogin()) { 
					?><script>ismember=0;</script><a style="color:red" href="/member/index_do.php?fmdo=user&dopost=regnew" >友情提示:注册会员才可以删除贴子哦!</a>
					<?php } ?>
				</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td width="19%" height="28" align="center" bgcolor="#FFFFFF"><?php echo $cInfos['titlename']; ?>：</td>
                <td width="81%" colspan="3" bgcolor="#FFFFFF"><input name="title" type="text" id="title" size="30" class="nb" style='width:250px' />
                  <font color="#FF0000">*</font> </td>
              </tr>
			  <input type='hidden' name='typeid' value='1' /><tr>
				 <td align="right" valign="top">请选择地区：</td>
  <td><!-- <input type='hidden' id='hidden_nativeplace' name='nativeplace' value='0' /> -->
<span id='span_nativeplace2'></span>
<script language='javascript' type='text/javascript' src='/data/enums/nativeplace.js'></script>
<script language="javascript" type="text/javascript">

function on_np_sel( i )
{
	$("#span_nativeplace2 label").css("font-size",14);
	$("#span_nativeplace2 label").css("font-weight","");
	$("#nplabel"+i).css("font-size",15);
	$("#nplabel"+i).css("font-weight","bold");
	$("#np"+i).attr("checked","true");
}

function nativepalce_init()
{
	for( var n in em_nativeplaces )
	{
	 if(n%500 == 0 ) continue;
	 $("#span_nativeplace2").append("<span ><input onclick=on_np_sel("+n+") id=np"+n+" type='radio' name='nativeplace' value='"+n+"' /><label onclick=on_np_sel("+n+") id=nplabel"+n+" for=np"+n+" >"+ em_nativeplaces[n]+"</label></span>");
	 }
	 $("#np501").attr("checked","true");
}
</script>
</td>
</tr>

<tr>
  <td align="right" valign="top">请选择信息类型：</td>
  <td><input type='hidden' id='hidden_infotype' name='infotype' value='0' />
<div id='span_infotype2'></div>
<div id="infotype_detail"></div>
<script language='javascript' type='text/javascript' src='/data/enums/infotype.js'></script>
<script language='javascript' type='text/javascript' >
function infotype_init()
{
	for( var it in   em_infotypes )
	{
		tid = Math.floor(it/500);
		if( $("#infod"+tid).length == 0 ) $("#infotype_detail").append( "<div id=infod"+tid+" ></div>" );
		if( it % 500 > 0 )
		{
			name = em_infotypes[it];
			$("#infod"+tid).append("<span><input onclick=oninfotypesel("+it+")  type=radio name=infotype value="+it+"  id=infot"+it+" /><label id=ilabel"+it+" onclick=oninfotypesel("+it+") for=infot"+it+" >"+name+"</label></span>");
		}
		else
		{
			$("#span_infotype2").append( "<span onclick=seltype1("+tid+") id=btnsel"+tid+" tag="+tid+">"+em_infotypes[it]+"</span>" );
		}

	}

}
function seltype1( i )
{
	sel_info(i);
}
function oninfotypesel(i)
{
	$("#infotype_detail label").css("font-weight","");
	$("#infotype_detail label").css("font-size",14);
	$("#ilabel"+i).css("font-weight","bold");
	$("#ilabel"+i).css("font-size",15);
	$("#infot"+i).attr("checked","true");
}
function sel_info( i )
{
	
	$("#span_infotype2 span").css("background-color","");
	$("#span_infotype2 span").css("color","black");
	$("#span_infotype2 span").css("font-weight","");
	$("#infotype_detail div").hide();
	$("#infod"+i).show();
	c = "#444444";
		
	$("#infotype_detail").css("background-color", c);
	$("#btnsel"+i).css("background-color", c);
	$("#btnsel"+i).css("color", "white");
	$("#btnsel"+i).css("font-weight", "bold");

}

infotype_init();
sel_info(2);
</script>
</td>
</tr>

<tr>
  <td align="right" valign="top">信息内容：<br /> 
  <script  language='javascript' type='text/javascript' >
  editortype=1;
  
  function shifteditor()
  {
	ed1='';
	if (ismember==0)
	{
		alert("只有会员可以使用高级编辑器!");
		return ;
	}
	ed2='<input type="hidden" id="body" name="body" value="" style="display:none" /><input type="hidden" id="body___Config" value="FullPage=false" style="display:none" /><iframe id="body___Frame" src="/include/FCKeditor/editor/fckeditor.html?InstanceName=body&amp;Toolbar=Member" width="100%" height="350" frameborder="0" scrolling="no"></iframe>';
	if( editortype == 1 )
	{
		editortype = 2;
		
		$("#edittd").html(ed2);
	}
	
  }
  </script>
  
  </td>
  <td id=edittd ><div>
  <a  onclick="shifteditor();" href="javascript:void(0);" />
  	<?php if(!$cfg_ml->IsLogin()) { 
					?>会员可以<?php } ?>切换到高级编辑器可以上传图片</a></div>
   <div>	<TEXTAREA NAME=body ROWS=80 COLS=190 style="width:600px;height:200px;"  > </TEXTAREA></div>
  </td >
<!--  <td><input type="hidden" id="body" name="body" value="" style="display:none" /><input type="hidden" id="body___Config" value="FullPage=false" style="display:none" /><iframe id="body___Frame" src="/include/FCKeditor/editor/fckeditor.html?InstanceName=body&amp;Toolbar=Member" width="100%" height="350" frameborder="0" scrolling="no"></iframe></td> -->
</tr>
<tr>
  <td align="right" valign="top">截止日期：</td>

  <td>
  <input type='hidden' name='dede_addonfields' value="nativeplace,stepselect;infotype,stepselect;body,htmltext;endtime,datetime;linkman,text;tel,text;email,text;address,text">
  <input name="endtime" value="" type="text" id="endtime" style="width:250px" /></td>
</tr>
<tr>
  <td align="right" valign="top">联系人：</td>
  <td><input type='text' name='linkman' id='linkman' style='width:250px'  class='text' value='' />
</td>
</tr>
<tr>
  <td align="right" valign="top">联系电话：</td>
  <td><input type='text' name='tel' id='tel' style='width:250px'  class='text' value='' />

</td>
</tr>
<tr>
  <td align="right" valign="top">电子邮箱：</td>
  <td><input type='text' name='email' id='email' style='width:250px'  class='text' value='' />
</td>
</tr>
<tr>
  <td align="right" valign="top">地址：</td>
  <td><input type='text' name='address' id='address' style='width:250px'  class='text' value='' />
</td>

</tr>





              <?php if($cInfos['dfcid']>0)
      {
      	echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />";
      }
      else
      {
      ?>
              <tr>
                <td height="28" align="center" bgcolor="#F7FDF0">隶属栏目：</td> 
                <td colspan="3" bgcolor="#F7FDF0"><?php
		$typeOptions = GetOptionList(0,$channelid);
		echo "<select name='typeid' style='width:350px' size='1'>\r\n";
		echo "<option value='0' selected>请选择栏目...</option>\r\n";
		echo $typeOptions;
		echo "</select>";
		?>
                  (只允许并且必须选择白色背景的项目<font color="#FF0000">*</font>) </td>
              </tr>
              <tr style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'>
                <td height="28" align="center"  class='tdline'>缩略图：</td>
                <td colspan="3"  class='tdline'><input name="litpic" type="file" id="litpic" style="width:300px" onchange="SeePicNew('divpicview',this);"  />
                  <div id='divpicview' class='divpre'></div></td>
              </tr>
              <?php
      }
	


      //游客强制加验证码，会员则判断后台开关
      if(!$cfg_ml->IsLogin() || $cfg_vdcode_member=='Y')
      {
      ?>
              <tr id="seccode">
                <td align="right" valign="top">验证码：</td>
                <td><input class="text" name="vdcode" type="text" id="vdcode" size="10" style='width:50px;text-transform:uppercase;' />
                  <img id="yzm" src='../include/vdimgck.php' alt="验证码" width='50' height='20' align="absmiddle" /> <a onclick="javascript:reloadyzm()">看不清验证码?点击这里</a></td>
              </tr>
              <?php
      }
      else
      {
      	echo "<input name='vdcode' type='hidden' id='vdcode' value='notuse' />";
      }
      ?>
            </tbody>
            <tfoot>
              <tr>
                <td height="45">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">提交</button>
                  <button class="button2 mL10" type="reset" onclick="location.reload();">重置</button></td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
<script language="JavaScript">
		<!--
			function reloadyzm()
			{
				var timenow = new Date().getTime(); 
				document.getElementById('yzm').src='../include/vdimgck.php?'+timenow;
			}
		//-->
		</script>	
</body>
</html>
